package net.csdn.business.common.domain.request.issue;

import lombok.Data;
import net.csdn.business.common.domain.validation.groups.System;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * @author likun
 * @date 2022/11/9 14:49
 */
@Data
public class MoveIssueRequestDto implements Serializable {
    @NotBlank(message = "uid 不合法", groups = {System.class})
    private String uid;

    /**
     * 原有issue对应的projectId
     */
    @NotNull(message = "oldProjectId 不合法", groups = {System.class})
    private Long oldProjectId;

    @NotNull(message = "projectId 不能为空")
    @Positive(message = "projectId 不合法")
    private Long projectId;

    @NotBlank(message = "issueId 不合法")
    private String issueId;
}